package com.jnxx.okr.mapper;

import com.jnxx.okr.domain.Alignment;
import com.jnxx.basic.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author haha
 * @since 2023-09-25
 */
public interface AlignmentMapper extends BaseMapper<Alignment> {

    List<Alignment> findByTargetId(Long id);

    void delByTargetId(Long targetId);

    List<Alignment> findBySourceId(Long id);

    void delBySourceId(Long sourceId);

    List<Alignment> findByTargetIdOrParentId(Long id);

    void delByTargetIdAndParentId(Long id);


    Integer[] findIdsByTargetIdOrParentId(Long id);
}
